﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace wesiGestClinica.Controles
{
    public partial class UCBarraHerramientas : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public delegate void EventHandler(object sender, EventArgs e);
        public event EventHandler img_NuevoControl_Clicked;
        public event EventHandler img_ModificarControl_Clicked;
        public event EventHandler img_GrabarControl_Clicked;
        public event EventHandler img_EliminarControl_Clicked;
        public event EventHandler img_VolverControl_Clicked;
        #region Propiedades
        public ImageButton img_Nuevo
        {
            get { return img_NuevoControl; }
            set { img_NuevoControl = value; }
        }
        public ImageButton img_Modificar
        {
            get { return img_ModificarControl; }
            set { img_ModificarControl = value; }
        }
        public ImageButton img_Eliminar
        {
            get { return img_EliminarControl; }
            set { img_EliminarControl = value; }
        }
        public ImageButton img_Grabar
        {
            get { return img_GrabarControl; }
            set { img_GrabarControl = value; }
        }
        public ImageButton img_Volver
        {
            get { return img_VolverControl; }
            set { img_VolverControl = value; }
        }

        #endregion

        #region Eventos
        protected void img_NuevoControl_Click(object sender, EventArgs e)
        {
            if (img_NuevoControl_Clicked != null) img_NuevoControl_Clicked(this, e);
        }
        protected void img_ModificarControl_Click(object sender, EventArgs e)
        {
            if (img_ModificarControl_Clicked != null) img_ModificarControl_Clicked(this, e);
        }
        protected void img_GrabarControl_Click(object sender, EventArgs e)
        {
            if (img_GrabarControl_Clicked != null) img_GrabarControl_Clicked(this, e);
        }
        protected void img_EliminarControl_Click(object sender, EventArgs e)
        {
            if (img_EliminarControl_Clicked != null) img_EliminarControl_Clicked(this, e);
        }
        protected void img_VolverControl_Click(object sender, EventArgs e)
        {
            if (img_VolverControl_Clicked != null) img_VolverControl_Clicked(this, e);
        }
        #endregion
    }
}